//
//  pagination.h
//  ehubApp
//
//  Created by AonePOS on 24/09/13.
//  Copyright (c) 2013 AonePOS. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface pagination : NSObject{
    
    NSMutableArray *activeresultset,*completeresultset,*segmentArray;
    UISegmentedControl *paginationsegment;
    UILabel *displayedresults;
    NSInteger resultsforpage,totalnumberofsegments;
    UIButton *prevs,*next;
    int minimumval,maximumval,rangeval;
}
-(void)paginationinitializer :(NSMutableArray *)resultsarray :(NSInteger)resultsperpage;
-(void)paginationinitializer :(NSMutableArray *)resultsarray;
-(NSString *)returnvalueforkey :(NSMutableArray *)resultsArray  :(NSMutableArray *)paginationActiveResultSet :(NSString *)keyvalue;


-(NSMutableArray *)activateResults :(NSInteger)activeSegmentIndex;

@property(nonatomic,retain)NSMutableArray *activeresultset,*completeresultset,*segmentArray;
@property(nonatomic,retain)UISegmentedControl *paginationsegment;
@property(nonatomic,retain)UILabel *displayedresults;
@property(nonatomic,assign)NSInteger resultsforpage,totalnumberofsegments;
@property(nonatomic,retain)UIButton *prevs,*next;
@end
